home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
gsdb21.arc
/
DB_XPL02.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-01-04
|
518b
|
25 lines
program DB_Xpl02;
uses
CRT,
DOS,
GS_dBFld,
GS_dBase;
var
Health : GS_dBFld_Objt;
begin
ClrScr;
Health.Init('HEALTH');
Health.Open;
Health.Index('FOODNAME'); {Use Index FOODNAME.NDX}
Health.GetRec(Top_Record);
while not Health.File_EOF do
begin
writeln(Health.FieldGet('FOOD'),' ',
Health.FieldGet('CALS'),' (',
Health.FieldGet('FOOD_CODE'),')');
Health.GetRec(Next_Record);
end;
Health.Close;
end.